-
Notifications
You must be signed in to change notification settings - Fork 299
Add extra
parameter to the validate functions
#1722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
please review |
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
CodSpeed Performance ReportMerging #1722 will not alter performanceComparing Summary
|
CI checks are failing with:
Hopefully a temporary issue. But how do I re-run them? [Edit: a force-push or two later, everything seems ok now] |
bae98e8
to
74c3cd9
Compare
@sydney-runkle anything I can do to help get this merged? |
@davidhewitt this has been gathering dust for a while.. anything preventing it from being merged? |
Change Summary
This change adds an
extra
parameter to the validation functions, overriding any other model configuration. After a corresponding update to Pydantic, this will enable the following from pydantic/pydantic#9278:I've tried to add tests and update existing ones where it makes sense. It's a very small change but touches a wide surface area, so please let me know if I've missed anything.
See also pydantic/pydantic#11057 for a similar request.
Related issue number
Checklist
pydantic-core
(except for expected changes)Selected Reviewer: @sydney-runkle